package com.hardydou.system.service;

import com.hardydou.system.model.SystemConfig;
import com.hardydou.system.model.SystemRes;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：ISystemRoleService
 * @date ：Created in 2020-03-10
 * @Copyright ：Hardydou.com
 */
public interface ISystemConfigService {

    @Transactional
    int add(SystemConfig config);

    @Transactional
    int update(SystemConfig config);

    @Transactional
    int deleteById(Long configId);

    SystemConfig findById(Long configId);

    SystemConfig findByConfigKey(String key);

    List<SystemConfig> list(Map params);


}
